#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int mainejzjo()
{
	int a, b, c, i;
	scanf("%d", &a);
	b = 1;
	printf("j o\n");
	for (i=0;i<32;i=i+2)
	{
		c = a & b;
		printf("%d ", c);
		a = a >> 1;
		c = a & b;
		printf("%d \n", c);
		a = a >> 1;
	}
	printf("");
	return 0;
}